package com.kugua.zfms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@ServletComponentScan //扫描servlet
@EnableScheduling //开启定时作务
@EnableAsync //开启异步任务
@EnableTransactionManagement
@MapperScan(basePackages = {"com.kugua.zfms.mapper"})
public class KuguaApplication {

    public static void main(String[] args) {
        SpringApplication.run(KuguaApplication.class, args);
    }
}
